package xxl_job_admin

import (
	"fmt"
	"net/http"

	"github.com/go-chi/chi/v5"
)

func ListenHttpRun(xxlUri string, xxlHandler http.Handler, addr string, port int) {
	// 启动http服务
	mux := chi.NewMux()
	mux.Mount(xxlUri, xxlHandler)
	go http.ListenAndServe(fmt.Sprintf("%s:%d", addr, port), mux)
}
